package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName produce_plan
 */
@TableName(value ="produce_plan")
public class ProducePlan implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String plannumber;

    /**
     * 
     */
    private String ordernumber;

    /**
     * 
     */
    private String producetime;

    /**
     * 
     */
    private String finishtime;

    /**
     * 
     */
    private String produceworkshop;

    /**
     * 
     */
    private String identifycode;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String planstate;

    /**
     * 
     */
    private String plantime;

    /**
     * 
     */
    private String producenumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getPlannumber() {
        return plannumber;
    }

    /**
     * 
     */
    public void setPlannumber(String plannumber) {
        this.plannumber = plannumber;
    }

    /**
     * 
     */
    public String getOrdernumber() {
        return ordernumber;
    }

    /**
     * 
     */
    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    /**
     * 
     */
    public String getProducetime() {
        return producetime;
    }

    /**
     * 
     */
    public void setProducetime(String producetime) {
        this.producetime = producetime;
    }

    /**
     * 
     */
    public String getFinishtime() {
        return finishtime;
    }

    /**
     * 
     */
    public void setFinishtime(String finishtime) {
        this.finishtime = finishtime;
    }

    /**
     * 
     */
    public String getProduceworkshop() {
        return produceworkshop;
    }

    /**
     * 
     */
    public void setProduceworkshop(String produceworkshop) {
        this.produceworkshop = produceworkshop;
    }

    /**
     * 
     */
    public String getIdentifycode() {
        return identifycode;
    }

    /**
     * 
     */
    public void setIdentifycode(String identifycode) {
        this.identifycode = identifycode;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public String getPlanstate() {
        return planstate;
    }

    /**
     * 
     */
    public void setPlanstate(String planstate) {
        this.planstate = planstate;
    }

    /**
     * 
     */
    public String getPlantime() {
        return plantime;
    }

    /**
     * 
     */
    public void setPlantime(String plantime) {
        this.plantime = plantime;
    }

    /**
     * 
     */
    public String getProducenumber() {
        return producenumber;
    }

    /**
     * 
     */
    public void setProducenumber(String producenumber) {
        this.producenumber = producenumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProducePlan other = (ProducePlan) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlannumber() == null ? other.getPlannumber() == null : this.getPlannumber().equals(other.getPlannumber()))
            && (this.getOrdernumber() == null ? other.getOrdernumber() == null : this.getOrdernumber().equals(other.getOrdernumber()))
            && (this.getProducetime() == null ? other.getProducetime() == null : this.getProducetime().equals(other.getProducetime()))
            && (this.getFinishtime() == null ? other.getFinishtime() == null : this.getFinishtime().equals(other.getFinishtime()))
            && (this.getProduceworkshop() == null ? other.getProduceworkshop() == null : this.getProduceworkshop().equals(other.getProduceworkshop()))
            && (this.getIdentifycode() == null ? other.getIdentifycode() == null : this.getIdentifycode().equals(other.getIdentifycode()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getPlanstate() == null ? other.getPlanstate() == null : this.getPlanstate().equals(other.getPlanstate()))
            && (this.getPlantime() == null ? other.getPlantime() == null : this.getPlantime().equals(other.getPlantime()))
            && (this.getProducenumber() == null ? other.getProducenumber() == null : this.getProducenumber().equals(other.getProducenumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlannumber() == null) ? 0 : getPlannumber().hashCode());
        result = prime * result + ((getOrdernumber() == null) ? 0 : getOrdernumber().hashCode());
        result = prime * result + ((getProducetime() == null) ? 0 : getProducetime().hashCode());
        result = prime * result + ((getFinishtime() == null) ? 0 : getFinishtime().hashCode());
        result = prime * result + ((getProduceworkshop() == null) ? 0 : getProduceworkshop().hashCode());
        result = prime * result + ((getIdentifycode() == null) ? 0 : getIdentifycode().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getPlanstate() == null) ? 0 : getPlanstate().hashCode());
        result = prime * result + ((getPlantime() == null) ? 0 : getPlantime().hashCode());
        result = prime * result + ((getProducenumber() == null) ? 0 : getProducenumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", plannumber=").append(plannumber);
        sb.append(", ordernumber=").append(ordernumber);
        sb.append(", producetime=").append(producetime);
        sb.append(", finishtime=").append(finishtime);
        sb.append(", produceworkshop=").append(produceworkshop);
        sb.append(", identifycode=").append(identifycode);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", userid=").append(userid);
        sb.append(", planstate=").append(planstate);
        sb.append(", plantime=").append(plantime);
        sb.append(", producenumber=").append(producenumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}